/**
 * Created by thinkl on 2017/6/22.
 */

function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]);
    return null;
}
// 后台商品列表
function go_commodity_list() {
    location.href = '/static/commodity-list/commodity-list.html'
}
// 前台商城主页
function back_shopping() {
    location.href = '/static/shopping/shopping.html'
}
// 订单列表
function go_order_list() {
    location.href = '/static/order/order_list.html'
}
// 购物车
function go_shopping_cart() {
    location.href = '/static/shopping_cart/shopping_cart.html'
}
// 地址列表
function go_address_list() {
    location.href = '/static/address_list/address_list.html'
}
// 后台登陆页
function go_login_admin() {
    location.href = '/static/login/login-admin.html'
}
// 前台登陆页
function go_login() {
    location.href = '/static/login/login.html'
}
// 发货订单列表
function go_send_order_list() {
    location.href = '/static/send-order-list/send-order-list.html'
}